<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>
<title>用学号输出头像</title>
<p>开始的学号(10位数字)：</p>
<input type="text" name="begin" id="begin"  />
<button onclick="myFunction()">开始输出</button>
<p id="demo"></p>
<script>
function run(){
}
function myFunction()
{
var begin=document.getElementById("begin").value;
var x="",i=begin;
  x="<img src=\"http://jskq.xjtu.edu.cn:8080/Common/GetPhotoByBH?xh=" + i />";
  document.getElementById("demo").innerHTML=x;
}
</script>
</body>
</html>